// The Vue build version to load with the `import` command

import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import api from './api'
import axios from 'axios'
import ElSearchTablePagination from 'el-search-table-pagination'
Vue.prototype.$api = api //在Vue的原型上添加一个$http属性，该属性保存了axios
axios.defaults.baseURL = '/api'
// 导入全局样式
import './assets/css/global.css'
Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(ElSearchTablePagination)
new Vue({
    el:'#app',
    router: router,
    render: h => h(App),
  
})
